<?php
include '../connect/common_start.php';

if(isset($_REQUEST['mem_id']))
{
	$mem_id=$_REQUEST['mem_id'];
	$sql="SELECT f.id, f.create_date,m.id as friendid, m.mem_id, m.mem_name, m.mem_pic, m.mem_profile FROM friend f INNER JOIN member m ON f.mem_friend=m.id WHERE f.mem_id='$mem_id' AND f.`status`='1';";
	$result=mysql_query($sql);
	$row=array();
	while ($r=mysql_fetch_assoc($result))
	{
		$row[]=$r;
	}
	echo json_encode($row);
}

include '../connect/common_end.php';
?>